package team.seekers.hula.island.islandNotice.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import team.seekers.hula.common.entity.BaseDO;

import java.util.Date;

/**
 * (Notice)实体类
 *
 * @author GH
 * @since 2022-05-04 23:51:38
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(IslandNoticeDOField.TABLE_NAME)
public class IslandNoticeDO extends BaseDO {

    @TableId(value = IslandNoticeDOField.ID, type = IdType.AUTO)
    private String id;
    /**
     * 课程id
     */
    @TableField(IslandNoticeDOField.ISLAND_ID)
    private String islandId;
    /**
     * 用户id
     */
    @TableField(IslandNoticeDOField.USER_ID)
    private String userId;
    /**
     * 公告标题
     */
    @TableField(IslandNoticeDOField.TITLE)
    private String title;
    /**
     * 公告内容
     */
    @TableField(IslandNoticeDOField.CONTENT)
    private String content;

    @TableField(IslandNoticeDOField.DELETED)
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;


    @TableField(value = IslandNoticeDOField.GMT_CREATE, fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(value = IslandNoticeDOField.GMT_MODIFIED, fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
